/***********************************************************************************/
/* Code license:  GNU General Public License v3                                    */
/* Main page:     https://code.google.com/p/library-cross-platform/                */
/* Issue tracker: https://code.google.com/p/library-cross-platform/issues/list     */
/***********************************************************************************/

#include <regex>
#include "rexp.h"
#include "types.h"

namespace r_exp {

bool match(const char *in_string, const char *pattern)
{
  std::tr1::cmatch  result;
  std::tr1::regex   rx(pattern);

  std::tr1::regex_search(in_string, result, rx);
  return (result.empty() == true ? false : true);
}

}
